gtk4.git
10 years agogtkdnd: Plug a leak
Carlos Garnacho [Thu, 25 Jun 2015 12:58:00 +0000 (14:58 +0200)]
gtkdnd: Plug a leak

We create a cairo_t in order to find out the surface extents, but it
was being leaked, dragging the whole drag surface with it through
extra refs.

10 years agogtkmodelbutton: Plug a leak
Carlos Garnacho [Thu, 25 Jun 2015 12:56:59 +0000 (14:56 +0200)]
gtkmodelbutton: Plug a leak

The private struct had some data that needed freeing, but this widget
didn't have any destroy/dispose/finalize handlers.

10 years agogtkmenusectionbox: plug a leak
Carlos Garnacho [Thu, 25 Jun 2015 12:55:56 +0000 (14:55 +0200)]
gtkmenusectionbox: plug a leak

The list returned by gtk_container_get_children() wasn't being freed.

10 years agowayland: Plug some memleaks in DnD/clipboard code
Carlos Garnacho [Thu, 25 Jun 2015 12:52:47 +0000 (14:52 +0200)]
wayland: Plug some memleaks in DnD/clipboard code

gdk_atom_name() return value must be freed, this code was consistently
not doing so...

10 years agobuilder-tool: Don't strip h/vexpand
Matthias Clasen [Thu, 25 Jun 2015 11:01:26 +0000 (07:01 -0400)]
builder-tool: Don't strip h/vexpand

Setting these properties has the side-effect of setting the
corresponding -set properties, which makes GTK+ behave subtly
different. So don't mess with these.

10 years agoGtkSearchBar: Don't vexpand
Matthias Clasen [Thu, 25 Jun 2015 10:59:18 +0000 (06:59 -0400)]
GtkSearchBar: Don't vexpand

It turns out that setting vexpand to its default value has
side-effects that we need.

https://bugzilla.gnome.org/show_bug.cgi?id=751447

10 years agoGtkImage: Make resource property work properly
cedlemo [Wed, 24 Jun 2015 13:59:00 +0000 (13:59 +0000)]
GtkImage: Make resource property work properly

gtk_image_set_from_resource was setting the resource_path,
only to have it overwritten again before returning. That
is not as it should be, so change things to set the resource
path late.

https://bugzilla.gnome.org/show_bug.cgi?id=751443

10 years agowayland: protect against unknown mimetype requests
Carlos Garnacho [Wed, 24 Jun 2015 20:10:55 +0000 (22:10 +0200)]
wayland: protect against unknown mimetype requests

This oddly can be reproduced with weston+weston-dnd, when dragging
anything from GTK+ into weston-dnd, it will insist on picking its
custom application/x-wayland-dnd-flower mimetype, and this request
forwarded by the compositor, even if GTK+ didn't announce it on
its wl_data_source mimetype list. (What should probably happen here
is that the request is silenced, and/or weston-dnd picks (null))

This should be harmless, we are leaking though the fd in that case,
because the emission of GdkEventSelection on an unhandled mimetype
results in NOP. In order to avoid this, we should check whether the
mimetype is supported at all on the backend code and possibly close
the fd, this involves storing these in the first place.

https://bugzilla.gnome.org/show_bug.cgi?id=751414

10 years agowayland: Ensure we close the fd on all error paths in data_source.send
Carlos Garnacho [Wed, 24 Jun 2015 19:55:12 +0000 (21:55 +0200)]
wayland: Ensure we close the fd on all error paths in data_source.send

https://bugzilla.gnome.org/show_bug.cgi?id=751414

10 years agowayland: close() the selection fd if we didn't start writing yet
Carlos Garnacho [Wed, 24 Jun 2015 19:52:23 +0000 (21:52 +0200)]
wayland: close() the selection fd if we didn't start writing yet

If the other peer requests data too fast (too rare/unlikely though),
we might receive multiple gdk_wayland_selection_request_target() calls
with no ending gdk_wayland_selection_check_write(), in which case the
fd is leaked as no GOutputStream was created to take over it.

https://bugzilla.gnome.org/show_bug.cgi?id=751414

10 years agowayland: Ensure we cancel previous selection writes before starting one
Carlos Garnacho [Wed, 24 Jun 2015 17:57:40 +0000 (19:57 +0200)]
wayland: Ensure we cancel previous selection writes before starting one

We weren't catching all the places where the AsyncWriteData operation
should be cancelled, which could happen if we repeatedly request the
same target on different fds.

https://bugzilla.gnome.org/show_bug.cgi?id=751414

10 years agowayland: Do not close the descriptor on async_write_data_free()
Carlos Garnacho [Wed, 24 Jun 2015 17:53:39 +0000 (19:53 +0200)]
wayland: Do not close the descriptor on async_write_data_free()

At the moment we create the AsyncWriteData, the ownership of the
fd is granted to the GOutputStream, and the fd set to -1, so at
this moment we're just silently getting EBADFD.

This partially reverts 25885ca600fff, the initialization of .fd
to -1 is valid and stays though.

https://bugzilla.gnome.org/show_bug.cgi?id=751414

10 years agoUpdated Hungarian translation
Balázs Úr [Wed, 24 Jun 2015 17:45:33 +0000 (17:45 +0000)]
Updated Hungarian translation

10 years agowayland: Ensure device grabs generate crossing/focus events
Carlos Garnacho [Wed, 24 Jun 2015 15:48:18 +0000 (17:48 +0200)]
wayland: Ensure device grabs generate crossing/focus events

On X11 this is something the windowing system does for us, which the
wayland backend should emulate, being grabs completely client-side.

So, if the grab and current focus windows differ, make sure we emit
focus/crossing events as it corresponds to the grab device.

10 years agowayland: Update grab serial when ungrabbing keyboards
Carlos Garnacho [Wed, 24 Jun 2015 13:41:23 +0000 (15:41 +0200)]
wayland: Update grab serial when ungrabbing keyboards

This was being done so only on pointers. Internally, a GdkDeviceGrabInfo
is kept for each of the master pointer/keyboard, failing to do this for
keyboards results in a stuck keyboard grab.

https://bugzilla.gnome.org/show_bug.cgi?id=748892

10 years agowayland: Properly initialize/finalize where we store the data_source.send fd
Carlos Garnacho [Wed, 24 Jun 2015 09:27:20 +0000 (11:27 +0200)]
wayland: Properly initialize/finalize where we store the data_source.send fd

The fd must be closed on async_write_data_free(), but we should also
initialize it to -1 so gdk_wayland_selection_check_write() doesn't wrongly
pick the stdin fd.

https://bugzilla.gnome.org/show_bug.cgi?id=751414

10 years agoGtkWindow: some min/nat size corrections.
Christoph Reiter [Mon, 22 Jun 2015 17:22:10 +0000 (19:22 +0200)]
GtkWindow: some min/nat size corrections.

Don't add the container border to the title request size; it
is only used for the child widget.

Don't call gtk_widget_get_preferred_width_for_height() for
the title bar with an unrelated height and subtract the title
bar height before querying the child widget width.

Guard against negative size requests after substracting the
borders/shadows and the title bar.

https://bugzilla.gnome.org/show_bug.cgi?id=751341

10 years ago3.17.4
Matthias Clasen [Tue, 23 Jun 2015 17:11:26 +0000 (13:11 -0400)]
3.17.4

10 years agoFix up doc comments
Matthias Clasen [Tue, 23 Jun 2015 21:27:09 +0000 (17:27 -0400)]
Fix up doc comments

10 years agoFix up expected results of a11y tests
Matthias Clasen [Tue, 23 Jun 2015 21:07:38 +0000 (17:07 -0400)]
Fix up expected results of a11y tests

These changed due to th extra box that GtkAssistant now
inserts for each page.

10 years agoFix an oversight
Matthias Clasen [Tue, 23 Jun 2015 20:46:07 +0000 (16:46 -0400)]
Fix an oversight

10 years agoGtkPlacesSidebar: Simplify sidebar code
Matthias Clasen [Tue, 23 Jun 2015 20:28:18 +0000 (16:28 -0400)]
GtkPlacesSidebar: Simplify sidebar code

Make this code follow GTK+ styles and conventions better.

10 years agoGktPlacesSidebar: Plug a ton of leaks
Matthias Clasen [Tue, 23 Jun 2015 20:06:30 +0000 (16:06 -0400)]
GktPlacesSidebar: Plug a ton of leaks

If you don't keep in mind that g_object_get() returns references to
objects and copies fo strings, things leak all over the place.

10 years agosidebarrow: Avoid object-valued properties
Matthias Clasen [Tue, 23 Jun 2015 18:42:57 +0000 (14:42 -0400)]
sidebarrow: Avoid object-valued properties

They tend to leak...as these do.

10 years agorender: Fix ridge/groove border rendering
Benjamin Otte [Tue, 23 Jun 2015 19:45:33 +0000 (21:45 +0200)]
render: Fix ridge/groove border rendering

The typo strikes again!

10 years agoGtkHeaderBar: reduce minimum title width
Christoph Reiter [Tue, 23 Jun 2015 08:54:39 +0000 (10:54 +0200)]
GtkHeaderBar: reduce minimum title width

The minimum title width affects the minimum window width
for CSD windows. To allow smaller windows like without
CSD reduce it a bit (276px vs 156px min width)

https://bugzilla.gnome.org/show_bug.cgi?id=751341

10 years agoGtkWindow: fix default empty window size with CSD
Christoph Reiter [Mon, 22 Jun 2015 18:36:50 +0000 (20:36 +0200)]
GtkWindow: fix default empty window size with CSD

In the non-CSD case we checked for 0x0 window size requisition
and replaced it with 200x200 so the window was still visible.
This no longer works in case of CSD as the shadow and title bar
are always added to the requisition resulting in a titlebar/shadow
only window in case there is no child widget (this is currently
visible under wayland or when setting GTK_CSD=1).

Instead of special casing the final window size, special case
the child requisition paths instead. This gives us the same
requisition in both, CSD and non-CSD cases (the header bar
has a too large minimum width atm so the resulting window is
still not the same)

https://bugzilla.gnome.org/show_bug.cgi?id=751341

10 years agomir: fix toggling between maximized and restored
William Hua [Mon, 22 Jun 2015 16:31:32 +0000 (12:31 -0400)]
mir: fix toggling between maximized and restored

10 years agomir: fix wheel scrolling in both directions
William Hua [Mon, 22 Jun 2015 02:13:27 +0000 (22:13 -0400)]
mir: fix wheel scrolling in both directions

10 years agomir: emit GDK_ENTER_NOTIFY on pointer enter
William Hua [Mon, 22 Jun 2015 02:07:44 +0000 (22:07 -0400)]
mir: emit GDK_ENTER_NOTIFY on pointer enter

10 years agomir: remove non-useful logging
William Hua [Fri, 19 Jun 2015 19:16:27 +0000 (15:16 -0400)]
mir: remove non-useful logging

10 years agomir: don't need dummy egl surface
William Hua [Fri, 19 Jun 2015 15:29:08 +0000 (11:29 -0400)]
mir: don't need dummy egl surface

10 years agomir: emit configure event on window move/resize
William Hua [Thu, 18 Jun 2015 14:39:28 +0000 (10:39 -0400)]
mir: emit configure event on window move/resize

Without this, some windows don't restart the paint clock needed to
actually render the contents.

10 years agomir: fix build due to missing api
William Hua [Fri, 12 Jun 2015 16:43:47 +0000 (12:43 -0400)]
mir: fix build due to missing api

10 years agoAdwaita: scale marks visible on the dark variant
Lapo Calamandrei [Tue, 23 Jun 2015 17:11:15 +0000 (19:11 +0200)]
Adwaita: scale marks visible on the dark variant

10 years agoUpdated Hungarian translation
Balázs Úr [Tue, 23 Jun 2015 13:59:34 +0000 (13:59 +0000)]
Updated Hungarian translation

10 years agoGtkScale: More work on mark spacing
Matthias Clasen [Tue, 23 Jun 2015 13:33:30 +0000 (09:33 -0400)]
GtkScale: More work on mark spacing

Try harder not to push the scale out of balance by marks. With
this change, the remaining difference in the drawing is down
to asymmetric assets and margins coming out of the theme.
To fully support such asymmetric rendering, we need implement
baseline alignment for scales.

https://bugzilla.gnome.org/show_bug.cgi?id=749650

10 years agoprinting: Get output bin via IPP
Marek Kasik [Tue, 23 Jun 2015 11:28:21 +0000 (13:28 +0200)]
printing: Get output bin via IPP

Request "output-bin-supported" and "output-bin-default" attributes through
IPP if there is no PPD for selected printer.
Pass "output-bin" option with other options in printer_get_options().
Translate standard IPP values of "output-bin" option.

https://bugzilla.gnome.org/show_bug.cgi?id=725441

10 years agoGtkStack: Avoid some unnecessary complication
Matthias Clasen [Tue, 23 Jun 2015 10:44:31 +0000 (06:44 -0400)]
GtkStack: Avoid some unnecessary complication

We already have an in-destruction flag, so use it.

10 years agoFix calculation of edge input window size in case the real window is too small.
Christoph Reiter [Sat, 20 Jun 2015 11:27:20 +0000 (13:27 +0200)]
Fix calculation of edge input window size in case the real window is too small.

This error resulted in warnings like
"pixman_region32_init_rect: Invalid rectangle passed"

In case the window is smaller than handle_size * 2 the resulting
edge window got a negative size. Prevent that by limiting the
handle size to half the respective edge length. This also
prevents the corner windows from overlapping in case the window
is too small.

10 years agoRevert "window: Check if we can use CSD before enabling them"
Emmanuele Bassi [Mon, 22 Jun 2015 13:19:29 +0000 (14:19 +0100)]
Revert "window: Check if we can use CSD before enabling them"

This reverts commit c5e5ee67490e7e7af56052d8f8beb75db002c2f1.

It turns out that this commit breaks the default sizing of GtkWindow,
which in turn causes the window to be smaller than the handle size,
which ends up sending invalid rectangles to Cairo.

We'll have to find another way to fix the CSD issue.

See also: https://bugzilla.gnome.org/show_bug.cgi?id=751140

https://bugzilla.gnome.org/show_bug.cgi?id=750343

10 years agoAvoid spurious operations on destroy
Paolo Borelli [Sun, 16 Feb 2014 21:22:59 +0000 (22:22 +0100)]
Avoid spurious operations on destroy

When the stack is destroyed we do not want to waste time running
animations and notifying listeners about which is our current
visible child.

This is not only an optimization, but it is important for the stack
switcher widgets: since they are in another branch of the hieratchy
we do not want to get notifications while the stack is being destroyed.

Based on a patch by Paolo Borelli
https://bugzilla.gnome.org/show_bug.cgi?id=724506

10 years agoPacify gobject-introspection
Matthias Clasen [Sun, 21 Jun 2015 00:29:18 +0000 (20:29 -0400)]
Pacify gobject-introspection

gobject-introspection complains about the parameter names of
vfuncs. Why, you ask ? No idea.

10 years agoGtkRange: Improve zoom handling a bit
Matthias Clasen [Sun, 21 Jun 2015 00:26:42 +0000 (20:26 -0400)]
GtkRange: Improve zoom handling a bit

The calculation to update the initial slider position on zoom
changes was not working correctly when using keys to toggle
zoom on and off for scales. Avoid it by updating the position
beforehand.

10 years agoGtkRange: Make drag gesture less agressive
Matthias Clasen [Sat, 20 Jun 2015 22:37:15 +0000 (18:37 -0400)]
GtkRange: Make drag gesture less agressive

Moving the mouse while pressing one of the steppers was making
the slider jump to the end, unexpectedly. This was caused by the
drag gesture kicking in when it shouldn't. Fix this by making
all drag gesture signal handlers only do something if we are in
a drag thats started on the slider.

https://bugzilla.gnome.org/show_bug.cgi?id=751050

10 years agofile chooser: Avoid tall combos
Caolán McNamara [Fri, 19 Jun 2015 14:47:53 +0000 (15:47 +0100)]
file chooser: Avoid tall combos

The filter combo box in the file chooser was stretching to match
the height of the extra widgets next to it. Since, stretched combo
boxes are not a pretty sight, make it stick to the top instead.

Patch by Caolán McNamara,

https://bugzilla.gnome.org/show_bug.cgi?id=751227

10 years agoGtkOverlay: Sync up parameter names
Matthias Clasen [Sat, 20 Jun 2015 14:52:44 +0000 (10:52 -0400)]
GtkOverlay: Sync up parameter names

gtk-doc gets confused if the parameter names between header,
source and doc comment don't match up.

10 years agoFix a typo
Matthias Clasen [Sat, 20 Jun 2015 14:52:01 +0000 (10:52 -0400)]
Fix a typo

gtk-doc complained about a multi-line Since: tag, but the
real culprit was a typo in the Deprecated: tag.

10 years agoTell gtk-doc to ignore private headers
Matthias Clasen [Sat, 20 Jun 2015 14:47:18 +0000 (10:47 -0400)]
Tell gtk-doc to ignore private headers

Tell gtk-doc to ignore new private headers as well, otherwise
it complains about undocumented symbols in them.

10 years agoGtkWindow: Small documentation addition
Matthias Clasen [Sat, 20 Jun 2015 14:36:09 +0000 (10:36 -0400)]
GtkWindow: Small documentation addition

10 years agoGtkTextView: Small documentation addition
Matthias Clasen [Sat, 20 Jun 2015 14:33:56 +0000 (10:33 -0400)]
GtkTextView: Small documentation addition

10 years agoFix up index for some 3.14 symbols
Matthias Clasen [Sat, 20 Jun 2015 14:28:03 +0000 (10:28 -0400)]
Fix up index for some 3.14 symbols

Marking these as "Since: 3.14.1" may be more accurate, but
it causes gtk-doc to not put these symbols in any versioned
index at all (it generates an unused index for 3.14.1). So,
lets lie a little, and say these symbols were added in 3.14.

10 years agogtk-demo: Add forgotten source file
Matthias Clasen [Sat, 20 Jun 2015 02:03:19 +0000 (22:03 -0400)]
gtk-demo: Add forgotten source file

The font_features.c file was not added as a resource, so that
gtk3-demo could not display it.

10 years agogtk-demo: Many cosmetic fixes
Matthias Clasen [Sat, 20 Jun 2015 01:59:15 +0000 (21:59 -0400)]
gtk-demo: Many cosmetic fixes

Mostly update window titles, and some addition to descriptions.

10 years agoGtkAssistant: Fix criticals on dispose
Matthias Clasen [Sat, 20 Jun 2015 01:56:29 +0000 (21:56 -0400)]
GtkAssistant: Fix criticals on dispose

After the recent change thta introduced boxes between the pages
and the notebook, we were no longer careful enough when disposing
the assistant. Fix that up.

10 years agogtk3-demo: Improve the overlay demo
Matthias Clasen [Sat, 20 Jun 2015 00:08:15 +0000 (20:08 -0400)]
gtk3-demo: Improve the overlay demo

Add some more information to the description.

10 years agogtk-demo: A better overlay demo
Matthias Clasen [Fri, 19 Jun 2015 22:13:34 +0000 (18:13 -0400)]
gtk-demo: A better overlay demo

This shows the new passthrough feature.

10 years agoUpdated German translation
Christian Kirbach [Fri, 19 Jun 2015 20:58:12 +0000 (20:58 +0000)]
Updated German translation

10 years agoUpdated POTFILES.skip
Piotr Drąg [Fri, 19 Jun 2015 20:20:08 +0000 (22:20 +0200)]
Updated POTFILES.skip

10 years agogtk-demo: Don't Distribute demos.h
Chun-wei Fan [Wed, 20 May 2015 09:31:02 +0000 (17:31 +0800)]
gtk-demo: Don't Distribute demos.h

Since demos.h is now generated according to the platform for which GTK+ is
built, don't distribute it. Generate a Windows-specific demos.h.win32 and
distribute that instead, in which the Visual Studio build files will copy
it to demos.h, so that the build will proceed normally.

https://bugzilla.gnome.org/show_bug.cgi?id=749622

10 years agoBump Pango requirement
Matthias Clasen [Fri, 19 Jun 2015 13:33:39 +0000 (09:33 -0400)]
Bump Pango requirement

The font features demo that was just added uses bleeding-edge
pango features.

10 years agoAdd a font features demo
Matthias Clasen [Fri, 19 Jun 2015 13:28:09 +0000 (09:28 -0400)]
Add a font features demo

This started life as a standalone tool, but it is nicer
to have it integrated in gtk3-demo.

10 years agofile chooser: Small cleanup
Matthias Clasen [Fri, 19 Jun 2015 05:04:42 +0000 (01:04 -0400)]
file chooser: Small cleanup

Ask the search model if it is empty, instead of maintaining this
information manually in the file chooser widget.

10 years agoGtkSearchEngineTracker: Fix SPARQL syntax
Matthias Clasen [Fri, 19 Jun 2015 05:03:42 +0000 (01:03 -0400)]
GtkSearchEngineTracker: Fix SPARQL syntax

The function is called tracker:uri-is-descendant, not
tracker-uri-is-descendant.

10 years agoForgotten file
Matthias Clasen [Fri, 19 Jun 2015 05:03:28 +0000 (01:03 -0400)]
Forgotten file

10 years agoGtkSearchEngineSimple: Avoid a private struct
Matthias Clasen [Fri, 19 Jun 2015 04:48:29 +0000 (00:48 -0400)]
GtkSearchEngineSimple: Avoid a private struct

We can just make this type final, and avoid the private struct.

10 years agoGtkSearchEngineTracker: Avoid a private struct
Matthias Clasen [Fri, 19 Jun 2015 04:41:10 +0000 (00:41 -0400)]
GtkSearchEngineTracker: Avoid a private struct

We can just make this type final, and avoid the private struct.

10 years agoAvoid an unnecessary check
Matthias Clasen [Fri, 19 Jun 2015 04:34:28 +0000 (00:34 -0400)]
Avoid an unnecessary check

We create the indexed_locations array unconditionally.

10 years agoGtkSearchEngine: Avoid a crash
Matthias Clasen [Fri, 19 Jun 2015 04:32:49 +0000 (00:32 -0400)]
GtkSearchEngine: Avoid a crash

Add a destroy notify for the data of the callback, so we don't
end up leaving a dangling pointer behind for a short while if
the native engine is finalized before the simple one. This
was showing up as crash when typing and backspacing in the
search entry of the file chooser.

10 years agoGtkSearchEngine: Avoid crawling indexed locations
Matthias Clasen [Fri, 19 Jun 2015 04:12:46 +0000 (00:12 -0400)]
GtkSearchEngine: Avoid crawling indexed locations

Implement the IsIndexed callback for tracker. This requires
reading settings of the tracker file miner. We are careful
to avoid a hard dependency on the tracker schemas.

10 years agoGtkSearchEngine: Avoid crawling indexed locations
Matthias Clasen [Fri, 19 Jun 2015 04:11:01 +0000 (00:11 -0400)]
GtkSearchEngine: Avoid crawling indexed locations

Add a framework to the simple engine that allows to skip
locations which are indexed by the native engine.

10 years agoGtkSearchEngine: Initialize recursive flag
Matthias Clasen [Fri, 19 Jun 2015 04:06:14 +0000 (00:06 -0400)]
GtkSearchEngine: Initialize recursive flag

Otherwise all our searches become non-recursive, which was not
the intention.

10 years agoGtkSearchEngine: Add recursive flag
Matthias Clasen [Fri, 19 Jun 2015 02:44:11 +0000 (22:44 -0400)]
GtkSearchEngine: Add recursive flag

Add a flag for recursive search, and implement non-recursive
search in both the tracker and simple search engines.

This is not currently used in the file chooser.

10 years agoRemove an unused field
Matthias Clasen [Fri, 19 Jun 2015 02:40:49 +0000 (22:40 -0400)]
Remove an unused field

10 years agoGtkSearchEngine: Remove unused code
Matthias Clasen [Thu, 18 Jun 2015 21:08:09 +0000 (17:08 -0400)]
GtkSearchEngine: Remove unused code

Nothing ever uses or emits the hits-subtracted signal.
Nautilus dropped it a few years ago. Time to follow suit.

10 years agoUse infos from search engine instead of getting them again
Matthias Clasen [Thu, 18 Jun 2015 19:18:30 +0000 (15:18 -0400)]
Use infos from search engine instead of getting them again

When the search engine provides hits with GFileInfo, use that
to add the hits to the model directly, without going through
another round of async get_info calls.

To do this, we add a batched variant of the
_gtk_file_system_model_update_file call that takes lists of
GFiles and GFileInfos. Again, we can avoid repeated resorting
that happens when the files are updated individually.

10 years agoFix an oversight in the previous commit
Matthias Clasen [Thu, 18 Jun 2015 19:14:54 +0000 (15:14 -0400)]
Fix an oversight in the previous commit

We lost the line marking the search model as non-empty, causing
us to show the 'no results' page despite there being results.

10 years agoRequest the right attributes in the simple search engine
Matthias Clasen [Thu, 18 Jun 2015 18:37:23 +0000 (14:37 -0400)]
Request the right attributes in the simple search engine

This change makes it so that the file info passed along
from the simple search engine has all the attributes that
the file system model wants.

10 years agosearch engine: Pass file infos along for hits
Matthias Clasen [Thu, 18 Jun 2015 18:31:02 +0000 (14:31 -0400)]
search engine: Pass file infos along for hits

10 years agofile chooser: Use batched insertion for search results
Matthias Clasen [Thu, 18 Jun 2015 16:20:21 +0000 (12:20 -0400)]
file chooser: Use batched insertion for search results

This helps avoiding excess work when procesing many search
results, as typically happens with short search strings
and recursive search.

https://bugzilla.gnome.org/show_bug.cgi?id=751169

10 years agofile system model: Add batched insertion
Matthias Clasen [Thu, 18 Jun 2015 16:19:06 +0000 (12:19 -0400)]
file system model: Add batched insertion

Add a batched version of gtk_file_system_model_add_and_query_file
that takes a list of files and avoids resorting the model for each
individual insertion. The querying is still done one-file-at-a-time,
so more optimization is certainly possible.

10 years agoRevert "window: Reinstate logic for should_use_csd()"
Emmanuele Bassi [Thu, 18 Jun 2015 15:10:36 +0000 (16:10 +0100)]
Revert "window: Reinstate logic for should_use_csd()"

This reverts commit f043fd532dc66a7abb1d4ea57c666655330cc429.

The whole point of having can_use_csd() return TRUE when GTK_CSD is
unset is to use it inside enable_csd().

https://bugzilla.gnome.org/show_bug.cgi?id=751140

10 years agowindow: Reinstate logic for should_use_csd()
Emmanuele Bassi [Thu, 18 Jun 2015 13:48:58 +0000 (14:48 +0100)]
window: Reinstate logic for should_use_csd()

The old should_use_csd() function would return FALSE if the GTK_CSD
environment variable is unset; the change in commit c5e5ee67490e7e7
made it return TRUE if GTK_CSD is unset. This has a cascade effect
on the window size, which causes invalid rectangles to bubble down
to Pixman.

https://bugzilla.gnome.org/show_bug.cgi?id=751140

10 years agogtkdialog: Remove 2px border
Timm Bäder [Thu, 18 Jun 2015 13:37:23 +0000 (15:37 +0200)]
gtkdialog: Remove 2px border

10 years agomessagedialog: remove 2px border
Timm Bäder [Thu, 18 Jun 2015 13:36:03 +0000 (15:36 +0200)]
messagedialog: remove 2px border

10 years agofilechooserdialog: Remove space between window and content
Timm Bäder [Thu, 18 Jun 2015 09:55:29 +0000 (11:55 +0200)]
filechooserdialog: Remove space between window and content

Was removed in 232d6f84f0495e9effedc16d700fc13f5a6e302.

10 years agoAdwaita: indentation
Jakub Steiner [Thu, 18 Jun 2015 11:08:45 +0000 (13:08 +0200)]
Adwaita: indentation

- lapo was shouting at me.

10 years agoAdwaita: volume button and scale button padding
Lapo Calamandrei [Thu, 18 Jun 2015 10:46:00 +0000 (12:46 +0200)]
Adwaita: volume button and scale button padding

I was assuming that GtkVolumeButton and GtkScaleButton could only
contain a icon, now they get the image-button padding by default,
but if the text-button class is applied it is not overridden.

10 years agoAdwaita: scale popup quick fix
Lapo Calamandrei [Thu, 18 Jun 2015 10:33:04 +0000 (12:33 +0200)]
Adwaita: scale popup quick fix

10 years agoAdwaita: markup cleanup
Jakub Steiner [Thu, 18 Jun 2015 10:01:12 +0000 (12:01 +0200)]
Adwaita: markup cleanup

- move touch selection selectors to its own section
- use scss style markup for .button common elsewhere
  (more compact and legible)

10 years agoHC: touch text selection styling
Jakub Steiner [Wed, 17 Jun 2015 11:05:02 +0000 (13:05 +0200)]
HC: touch text selection styling

- sync with Adwaita
- try to avoid using image assets

https://bugzilla.gnome.org/show_bug.cgi?id=750883

10 years agoFix return value error in _gtk_window_get_popover_parent
Ting-Wei Lan [Thu, 18 Jun 2015 04:14:05 +0000 (12:14 +0800)]
Fix return value error in _gtk_window_get_popover_parent

10 years agoCosmetic change
Matthias Clasen [Thu, 18 Jun 2015 00:24:29 +0000 (20:24 -0400)]
Cosmetic change

10 years agoGtkPlacesSidebar: Fix rtl appearance
Matthias Clasen [Thu, 18 Jun 2015 00:07:24 +0000 (20:07 -0400)]
GtkPlacesSidebar: Fix rtl appearance

Apply the necessary directional variants for asymmetric
css padding.

https://bugzilla.gnome.org/show_bug.cgi?id=751084

10 years agooverlay: remove gtk_overlay_add_pass_through_overlay()
Cosimo Cecchi [Tue, 16 Jun 2015 19:02:41 +0000 (12:02 -0700)]
overlay: remove gtk_overlay_add_pass_through_overlay()

The API to access this functionality will be the setter we just added in
the previous commit.

https://bugzilla.gnome.org/show_bug.cgi?id=750568

10 years agooverlay: add setters and getters for pass-through child property
Cosimo Cecchi [Tue, 16 Jun 2015 19:01:30 +0000 (12:01 -0700)]
overlay: add setters and getters for pass-through child property

This will make the API easier to use from bindings too.

https://bugzilla.gnome.org/show_bug.cgi?id=750568

10 years agodocs: add new GtkOverlay methods to gtk3-sections.txt
Cosimo Cecchi [Tue, 16 Jun 2015 18:58:46 +0000 (11:58 -0700)]
docs: add new GtkOverlay methods to gtk3-sections.txt

https://bugzilla.gnome.org/show_bug.cgi?id=750568

10 years agoconfigure: test have_docbook_style != yes, not have_docbook_dtd
Alexander Larsson [Wed, 17 Jun 2015 15:35:18 +0000 (17:35 +0200)]
configure: test have_docbook_style != yes, not have_docbook_dtd

10 years agofile chooser: Drop unused variables
Matthias Clasen [Wed, 17 Jun 2015 10:09:59 +0000 (06:09 -0400)]
file chooser: Drop unused variables

10 years agofile chooser: Use a revealer
Matthias Clasen [Wed, 17 Jun 2015 03:46:34 +0000 (23:46 -0400)]
file chooser: Use a revealer

Use a revealer to manage the visibility of the header area where
we show the pathbar, the location entry or search. This is a bit
smoother, and makes search more similar to a search bar.